package com.gin.pixiv.response.recommend

import com.fasterxml.jackson.annotation.JsonAlias
import com.gin.pixiv.main.Pixiv

class RecommendDetail() {
    var banditInfo: String? = null
    var methods: List<String>? = null
    var recommendListId: String? = null
    var score: Double? = null

    @set: JsonAlias("seedIllustIds", "seed_novel_ids")
    var seedIds: List<Long>? = null
    var position: Int? = null


    constructor(string: String) : this() {
        val that = Pixiv.MAPPER.readValue(string, RecommendDetail::class.java)

        this.banditInfo = that.banditInfo
        this.methods = that.methods
        this.recommendListId = that.recommendListId
        this.score = that.score
        this.seedIds = that.seedIds
        this.position = that.position
    }
}